package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import org.apache.commons.dbutils.DbUtils;

public class FwsJdbcUtils {
	public static final String JDBCDRIVER_ORACLE = "oracle.jdbc.driver.OracleDriver";
	public static Connection getConnection(String url,String jdbcDriver,String user,String pwd){
		  Connection conn = null;  
		  try {
			DbUtils.loadDriver(jdbcDriver);  
			conn = DriverManager.getConnection(url,user,pwd);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return conn;
	}
	
}
